<?php

return [
    [
        'name' => 'modules',
        'title' => '开启模块',
        'type' => 'checkbox',
        'content' => [
            'index' => '前台[index]',
            'admin' => '后台[admin]',
            'addons' => '应用插件[addons]',
            'other' => '其它',
        ],
        'value' => 'index,admin,addons,other',
        'rule' => 'required',
        'msg' => '',
        'tip' => '开启文件修改自动刷新的模块',
        'ok' => '',
        'extend' => '',
    ],
    [
        'name' => 'ignored',
        'title' => '排除目录或文件',
        'type' => 'text',
        'group' => '',
        'visible' => '',
        'content' => [],
        'value' => '**/node_modules/**'."\r\n"
            .'**/uniapp/**'."\r\n"
            .'**/unpackage/**'."\r\n"
            .'**/.idea/**'."\r\n"
            .'**/.git/**'."\r\n"
            .'runtime/**'."\r\n"
            .'vendor/**'."\r\n"
            .'data/**'."\r\n"
            .'**/**/.*'."\r\n"
            .'addons/*/info.ini'."\r\n"
            .'public/uploads/**',
        'rule' => 'required',
        'msg' => '',
        'tip' => '排除监测的文件或目录，修改后需要重启服务',
        'ok' => '',
        'extend' => '',
    ],
    [
        'name' => 'excludepage',
        'title' => '忽略刷新的页面',
        'type' => 'text',
        'group' => '',
        'visible' => '',
        'content' => [],
        'value' => '/*.php/addon**'."\r\n"
            .'/*.php/dashboard**'."\r\n"
            .'/*.php/general/**'."\r\n"
            .'/*.php/auth/**'."\r\n"
            .'/*.php/user/**',
        'rule' => '',
        'msg' => '',
        'tip' => '用于配置忽略刷新的页面<br>修改后无需重启服务，但需刷新页面',
        'ok' => '',
        'extend' => '',
    ],
    [
        'name' => 'suffixlist',
        'title' => '监测文件后缀列表',
        'type' => 'string',
        'content' => [],
        'value' => 'js,css,json,html,tpl,php,txt',
        'rule' => 'required',
        'msg' => '',
        'tip' => '*表示全部,多个后续以半角逗号进行分隔',
        'ok' => '',
        'extend' => '',
    ],
    [
        'name' => 'autoenableaddon',
        'title' => '自动启用插件',
        'type' => 'radio',
        'content' => [
            1 => '是',
            0 => '否',
        ],
        'value' => '0',
        'rule' => 'required',
        'msg' => '',
        'tip' => '当检测到插件目录下的文件变更时自动启用插件',
        'ok' => '',
        'extend' => '',
    ],
    [
        'name' => 'port',
        'title' => 'Websocket端口',
        'type' => 'string',
        'content' => [],
        'value' => '3000',
        'rule' => 'required',
        'msg' => '',
        'tip' => '',
        'ok' => '',
        'extend' => '',
    ],
    [
        'name' => '__tips__',
        'title' => '温馨提示',
        'type' => 'string',
        'content' => [],
        'value' => '1、仅支持开发环境下使用<br>2、仅支持http请求下使用<br><font color="red">3、自动启用插件配置将强制覆盖文件</font>',
        'rule' => 'required',
        'msg' => '',
        'tip' => '',
        'ok' => '',
        'extend' => '',
    ],
];
